package com.candy.control;

import com.candy.bean.UserInfo;
import com.candy.service.UserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@Api(tags = "用户信息获取",value = "用户信息获取")
public class UserInfoContrller {
    @Autowired
    UserInfoService service;
    @ApiOperation("查询所有用户信息")
    @GetMapping("/getUserInfoById")
    public UserInfo getUserInfo(){
        return service.getUserInfoById(1);
    }

}
